package com.ruoyi.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.WebCooperateDataMapper;
import com.ruoyi.web.domain.WebCooperateData;
import com.ruoyi.web.service.IWebCooperateDataService;

/**
 * 合作案例模块Service业务层处理
 * 
 * @author li
 * @date 2025-08-01
 */
@Service
public class WebCooperateDataServiceImpl implements IWebCooperateDataService 
{
    @Autowired
    private WebCooperateDataMapper webCooperateDataMapper;

    /**
     * 查询合作案例模块
     * 
     * @param id 合作案例模块主键
     * @return 合作案例模块
     */
    @Override
    public WebCooperateData selectWebCooperateDataById(Long id)
    {
        return webCooperateDataMapper.selectWebCooperateDataById(id);
    }

    /**
     * 查询合作案例模块列表
     * 
     * @param webCooperateData 合作案例模块
     * @return 合作案例模块
     */
    @Override
    public List<WebCooperateData> selectWebCooperateDataList(WebCooperateData webCooperateData)
    {
        return webCooperateDataMapper.selectWebCooperateDataList(webCooperateData);
    }

    /**
     * 新增合作案例模块
     * 
     * @param webCooperateData 合作案例模块
     * @return 结果
     */
    @Override
    public int insertWebCooperateData(WebCooperateData webCooperateData)
    {
        return webCooperateDataMapper.insertWebCooperateData(webCooperateData);
    }

    /**
     * 修改合作案例模块
     * 
     * @param webCooperateData 合作案例模块
     * @return 结果
     */
    @Override
    public int updateWebCooperateData(WebCooperateData webCooperateData)
    {
        return webCooperateDataMapper.updateWebCooperateData(webCooperateData);
    }

    /**
     * 批量删除合作案例模块
     * 
     * @param ids 需要删除的合作案例模块主键
     * @return 结果
     */
    @Override
    public int deleteWebCooperateDataByIds(Long[] ids)
    {
        return webCooperateDataMapper.deleteWebCooperateDataByIds(ids);
    }

    /**
     * 删除合作案例模块信息
     * 
     * @param id 合作案例模块主键
     * @return 结果
     */
    @Override
    public int deleteWebCooperateDataById(Long id)
    {
        return webCooperateDataMapper.deleteWebCooperateDataById(id);
    }
}
